package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 地区管理对象 rc_district
 * 
 * @author wangjiangbo
 * @date 2025-01-10
 */
public class RcDistrict extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private String districtId;

    /** 父及关系 */
    @Excel(name = "父及关系")
    private String pid;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String district;

    /** 子属关系 */
    @Excel(name = "子属关系")
    private Integer level;

    public void setDistrictId(String districtId) 
    {
        this.districtId = districtId;
    }

    public String getDistrictId() 
    {
        return districtId;
    }
    public void setPid(String pid) 
    {
        this.pid = pid;
    }

    public String getPid() 
    {
        return pid;
    }
    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("districtId", getDistrictId())
            .append("pid", getPid())
            .append("district", getDistrict())
            .append("level", getLevel())
            .toString();
    }
}
